<? 
session_start();
if(!session_is_registered(myusername)){
header("location:index.php");
}
?>

<html>
<body>
Login Successful
<form action="logout.php" method="post">
	<input type="submit" name="Submit" value="Logout">
	</form>
</body>
</html>